# install cmdstanr --------------------------------------------------------
local({
  r <- getOption("repos")
  r["CRAN"] <- "https://cloud.r-project.org"
  options(repos = r)
})
install.packages("cmdstanr",
                 repos = c('https://stan-dev.r-universe.dev', getOption("repos")))
library(cmdstanr)
check_cmdstan_toolchain()
install_cmdstan(overwrite = TRUE)

# install from CRAN  -------------------------
install.packages("Matrix", repos = "https://cloud.r-project.org")
install.packages("readxl", repos = "https://cloud.r-project.org")
install.packages("ggallin", repos = "https://cloud.r-project.org")
install.packages("tidyfast", repos = "https://cloud.r-project.org")
install.packages("see", repos = "https://cloud.r-project.org")
install.packages("report", repos = "https://cloud.r-project.org")
install.packages("parameters", repos = "https://cloud.r-project.org")
install.packages("performance", repos = "https://cloud.r-project.org")
install.packages("modelbased", repos = "https://cloud.r-project.org")
install.packages("insight", repos = "https://cloud.r-project.org")
install.packages("effectsize", repos = "https://cloud.r-project.org")
install.packages("datawizard", repos = "https://cloud.r-project.org")
install.packages("correlation", repos = "https://cloud.r-project.org")
install.packages("bayestestR", repos = "https://cloud.r-project.org")
install.packages("easystats", repos = "https://cloud.r-project.org")
install.packages("broom", repos = "https://cloud.r-project.org")
install.packages("tidybayes", repos = "https://cloud.r-project.org")
install.packages("bayesplot", repos = "https://cloud.r-project.org")
install.packages("ggdist", repos = "https://cloud.r-project.org")
install.packages("cowplot", repos = "https://cloud.r-project.org")
install.packages("patchwork", repos = "https://cloud.r-project.org")
install.packages("showtext", repos = "https://cloud.r-project.org")
install.packages("showtextdb", repos = "https://cloud.r-project.org")
install.packages("sysfonts", repos = "https://cloud.r-project.org")
install.packages("lemon", repos = "https://cloud.r-project.org")
install.packages("viridis", repos = "https://cloud.r-project.org")
install.packages("viridisLite", repos = "https://cloud.r-project.org")
install.packages("ggrepel", repos = "https://cloud.r-project.org")
install.packages("kableExtra", repos = "https://cloud.r-project.org")
install.packages("flextable", repos = "https://cloud.r-project.org")
install.packages("whitening", repos = "https://cloud.r-project.org")
install.packages("corpcor", repos = "https://cloud.r-project.org")
install.packages("mvtnorm", repos = "https://cloud.r-project.org")
install.packages("lubridate", repos = "https://cloud.r-project.org")
install.packages("forcats", repos = "https://cloud.r-project.org")
install.packages("stringr", repos = "https://cloud.r-project.org")
install.packages("dplyr", repos = "https://cloud.r-project.org")
install.packages("purrr", repos = "https://cloud.r-project.org")
install.packages("readr", repos = "https://cloud.r-project.org")
install.packages("tidyr", repos = "https://cloud.r-project.org")
install.packages("tibble", repos = "https://cloud.r-project.org")
install.packages("ggplot2", repos = "https://cloud.r-project.org")
install.packages("tidyverse", repos = "https://cloud.r-project.org")
install.packages("here", repos = "https://cloud.r-project.org")
install.packages("GPArotation", repos = "https://cloud.r-project.org")
install.packages("posterior", repos = "https://cloud.r-project.org")
install.packages("seriation", repos = "https://cloud.r-project.org")
install.packages("coda", repos = "https://cloud.r-project.org")
install.packages("factor.switching", repos = "https://cloud.r-project.org")

# install from github -----------------------------------------------------
devtools::install_github("devincaughey/estsubpop", ref = "81cad7d")
devtools::install_github("devincaughey/dbmm", ref = "2ae8b62")
